<?php

class Dashboard_HomeController extends Zend_Controller_Action
{
	public function indexAction()
	{
		if (Account_Model_Session::hasValidSession() === FALSE) {
			$fmsg = uniqid();
			$flashMessenger = $this->_helper->FlashMessenger;
			$flashMessenger->setNamespace($fmsg);
			$flashMessenger->addMessage('You need to be logged in to see this page');
			$this->_redirect('/login?fmsg=' . $fmsg .'&return='. urlencode($_SERVER['REQUEST_URI']));
		}

		//TODO: widget container
	}
}
